#ifndef __APP_LAYER_H
#define __APP_LAYER_H


#include "air001xx_hal.h"

#define SYSTEM_BOOT_UP 0
#define SYSTEM_BOOT_DOWN 1


typedef struct
{
    unsigned char power_on : 2;
    unsigned char mode : 6;

    unsigned char _H;
    unsigned char _S;
    unsigned char _V;

}XCLed_Str;



extern XCLed_Str xcled_str;

void Error_Handler(void);

//===函数声明
void Key_Analysis_50MS(void);             //按键解析
void Uart1_Analysis_50MS(void);           //串口1接收解析
void SoftwareTimer_XCScan_5ms(void);      //灯光数据扫描软件定时器
void SoftwareTimer_1000MS(void);          //1000MS软件定时器

void ShutDown_Jump_BootUp(void);          //关机状态 切换到 开机状态
void BootUp_Jump_ShutDown(void);          //开机状态 切换到 关机状态

           

#endif

